home *** CD-ROM | disk | FTP | other *** search
- on(keyPress "<Up>"){
- CountCars = "1";
- while(CountCars < "5")
- {
- CarNum = "/car" add CountCars;
- if((getProperty(CarNum, _X) + getProperty(CarNum, _width) / "2" < getProperty("/car5", _X) - getProperty("/car5", _width) / "2" or getProperty("/car5", _X) + getProperty("/car5", _width) / "2" < getProperty(CarNum, _X) - getProperty(CarNum, _width) / "2" or getProperty(CarNum, _Y) + getProperty(CarNum, _height) / "2" < getProperty("/car5", _Y) - getProperty("/car5", _height) / "2" - "6" or getProperty("/car5", _Y) < getProperty(CarNum, _Y) - getProperty(CarNum, _height) / "2") and getProperty("/car5", _Y) - "2" >= "190")
- {
- set("Free" add CountCars,"1");
- }
- else
- {
- set("Free" add CountCars,"0");
- }
- CountCars += "1";
- }
- if(Free1 == "1" and Free2 == "1" and Free3 == "1" and Free4 == "1")
- {
- setProperty("/car5", _Y, getProperty("/car5", _Y) - "2");
- }
- }
-